// 封装组织架构接口
import { _axios } from '@/utils/request'
export const companydepartment = () => {
  return _axios({
    url: '/company/department'
  })
}
// 封装获取负责人的的性名接口
export const sysusersimple = () => {
  return _axios({
    url: '/sys/user/simple'
  })
}
// 封装新增部门的请求接口
export const companydepartmentpost = (data) => {
  return _axios({
    url: '/company/department',
    method: 'POST',
    data
  })
}
// 删除组织结构
export const companydepartmentDelete = (id) => {
  return _axios({
    url: `/company/department/${id}`,
    method: 'DELETE'
  })
}
// 修改部门信息
export const companydepartmentput = (data) => {
  return _axios({
    url: `/company/department/${data.id}`,
    method: 'PUT',
    data

  })
}
